package wwl.lsf.hellospringboot.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import wwl.lsf.hellospringboot.vo.XssVo;

@RestController
@RequestMapping("/hello")
public class XSSController {


  @RequestMapping(value = "/xss/json",method = RequestMethod.GET)
  @ResponseBody
  public String demo11(@RequestBody XssVo xssVo)
  {
    String name1 = xssVo.getName();
    return name1;
  }

  @RequestMapping(value = "/xss",method = RequestMethod.GET)
  public String demo11(@RequestParam String name)
  {
    return name;
  }

}
